package com.sunday.common.validation.annotation;

import com.sunday.common.core.enums.ErrorCodeEnum;
import com.sunday.common.core.gson.GsonUtils;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
@OpenDistributedLock(value = "11", errorCodeEnum = ErrorCodeEnum.A0_001, message = "233")
//@ErrorCodeAttribute(errorCodeEnum = ErrorCodeEnum.A0_001)
public class OpenDistributedEntity {

    @NotBlank
    @OpenDistributedLock(value = "22", errorCodeEnum = ErrorCodeEnum.A0_121, message = "233")
    private String name;

    @Override
    public String toString() {
        return GsonUtils.DEFAULT.toJson(this);
    }

}
